﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace QianJin.Views.Shared
{
    public enum NavigationPosition
    {
        None,
        Home,
        Company,
        Product,
        ContactUs
    }

    public partial class BasicSite : BaseMaster
    {
        public string GetLocalizedUrl(string mkt)
        {
            var url = this.Request.Url.OriginalString;
            url = url.Replace("mkt=en-us", "");
            url = url.Replace("mkt=zh-cn", "");

            if (url.IndexOf("?") > 0)
            {
                if (url[url.Length - 1] != '&')
                {
                    url += "&";
                }
            }
            else
            {
                url += "?";
            }

            url += "mkt=" + mkt;

            return url;
        }

        protected void Page_Load(object sender, EventArgs e)
        {
        }
    }
}
